package com.cneport.das.common.model.trans;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.*;

/**
 * @Desc Client上行请求的报文对象
 * @Ver 1.0
 * @Author GavinZhang
 * @Company 东方物通科技有限（北京）公司
 * @Date 2021-12-20 14:55:40
 */
@Data
@XmlRootElement(name = "ClientPutRequest")
@XmlAccessorType(XmlAccessType.FIELD)
public class ClientPutRequest {
    @XmlElement
    private ReqHead reqHead;
    @XmlElement
    private ReqData reqData;
    @XmlElement
    private String signature;
    @XmlElement
    private AddInfos addInfos;

    @XmlType
    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class ReqHead {
        private String guid;
        private String ver;
        private String msgType;
        private String copMsgId;
        private String reqTime;
        private String senderId;
        private ReceiverIds receiverIds;
        private String copNo;
        private String copLic;
    }

    @XmlType
    @Data
    @XmlAccessorType(XmlAccessType.FIELD)
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class ReqData {
        private String data;
        private String encoderVer;
        private String trans;
    }
}
